HAL COMP control functions migration

This section provides information about the HAL COMP control functions migration.

HAL COMP Lock

Function Description

This function is used to Lock the selected comparator configuration.

HAL1

HAL2

Function name

  • HAL_COMP_Lock()

  • HAL_COMP_Lock()

    Note

    For WindowMode use the function HAL_COMP_WINDOW_Lock()


HAL COMP Get output level

Function Description

This function is used to Return the output level (high or low) of the selected comparator .

HAL1

HAL2

Function name

  • HAL_COMP_GetOutputLevel()

  • HAL_COMP_GetOutputLevel()

    Note

    For WindowMode use the function HAL_COMP_WINDOW_GetOutputLevel()


HAL COMP Trigger callback

Function Description

This function is used to trigger comparator callback.

HAL1

HAL2

Function name

  • HAL_COMP_TriggerCallback()

  • HAL_COMP_OutputTriggerCallback()